<template>
  <footer class="footer">
    <div class="footer-content">
      <div class="footer-logo">
        <div class="footer-logo-img-container">
          <img src="@/assets/logo.jpg" alt="东软之声广播台" class="footer-logo-img" />
        </div>
        <h3>大连东软之声广播台</h3>
        <p>一路温暖，不在孤单，东软之声将竭诚为您服务</p>
      </div>
      
      <div class="footer-links">
        <div class="footer-column">
          <h4>联系我们</h4>
          <ul>
            <li><i class="iconfont icon-location"></i> 办公地点：A12-114</li>
            <li><i class="iconfont icon-phone"></i> 办公时间：周一至周日 8:00-21:00</li>
            <li><i class="iconfont icon-email"></i> 官方微信：Hello NSR</li>
          </ul>
        </div>
        
        <div class="footer-column qr-code-column">
          <h4>关注我们</h4>
          <div class="qr-code-container">
            <div class="qr-code-item">
              <img src="@/assets/抖音.png" alt="微信公众号二维码" class="qr-code-img" />
              <span>微信公众号</span>
            </div>
            <div class="qr-code-item">
              <img src="@/assets/抖音.png" :alt="'官方网易云二维码'" class="qr-code-img" />
              <span>官方网易云</span>
            </div>
            <div class="qr-code-item">
              <img src="@/assets/抖音.png" alt="官方抖音号二维码" class="qr-code-img" />
              <span>官方抖音号</span>
            </div>
          </div>
        </div>
      </div>
    </div>
    
    <div class="footer-bottom">
      <p><i class="iconfont icon-copyright"></i> 2025 大连东软之声广播台第23届 版权所有</p>
    </div>
  </footer>
</template>

<style scoped>
.footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 60px 24px 30px;
  margin-top: auto;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-logo {
  flex: 1;
  min-width: 250px;
  text-align: center;
}

.footer-logo-img-container {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.footer-logo-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.footer-logo h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.footer-logo p {
  color: #bdc3c7;
  font-style: italic;
}

.footer-links {
  flex: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-column {
  flex: 1;
  min-width: 180px;
}

.footer-column h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #3498db;
  display: inline-block;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 12px;
  color: #ecf0f1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.qr-code-column {
  display: flex;
  flex-direction: column;
}

.qr-code-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.qr-code-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.qr-code-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  background-color: white;
  padding: 5px;
  border-radius: 4px;
}

.qr-code-item span {
  color: #ecf0f1;
  font-size: 0.9rem;
  text-align: center;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #bdc3c7;
  font-size: 0.9rem;
}

.footer-bottom i {
  margin-right: 5px;
}

/* 响应式设计优化 */
@media (max-width: 1200px) {
  .footer {
    padding: 50px 20px 25px;
  }
  
  .footer-content {
    gap: 30px;
  }
}

@media (max-width: 900px) {
  .footer {
    padding: 40px 16px 20px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 30px;
  }
  
  .footer-links {
    width: 100%;
    justify-content: space-around;
  }
  
  .footer-logo {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 30px 12px 15px;
  }
  
  .footer-content {
    gap: 25px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 25px;
  }
  
  .footer-column {
    text-align: center;
  }
  
  .qr-code-container {
    justify-content: center;
    gap: 15px;
  }
  
  .qr-code-img {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 600px) {
  .footer {
    padding: 25px 10px 12px;
  }
  
  .footer-column {
    min-width: 100%;
  }
  
  .footer-logo h3 {
    font-size: 1.3rem;
  }
  
  .footer-logo p {
    font-size: 0.9rem;
  }
  
  .footer-column h4 {
    font-size: 1.1rem;
  }
  
  .qr-code-container {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .qr-code-item {
    flex-direction: row;
    gap: 10px;
  }
  
  .qr-code-img {
    width: 60px;
    height: 60px;
  }
  
  .footer-bottom {
    padding-top: 20px;
    margin-top: 25px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 20px 8px 10px;
  }
  
  .footer-logo-img {
    width: 60px;
    height: 60px;
  }
  
  .footer-logo h3 {
    font-size: 1.1rem;
  }
  
  .footer-column h4 {
    font-size: 1rem;
  }
  
  .footer-column li {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }
  
  .qr-code-item {
    flex-direction: column;
    text-align: center;
  }
  
  .qr-code-img {
    width: 50px;
    height: 50px;
  }
  
  .qr-code-item span {
    font-size: 0.8rem;
  }
}
</style>